﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace VideoServer
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract(CallbackContract=typeof(IVideoConferenceServiceCallback), SessionMode=SessionMode.Required)]
    public interface IVideoConferenceService
    {
        [OperationContract]
        void Subscribe();

        [OperationContract]
        void Publish(byte[] data);
    }

    public interface IVideoConferenceServiceCallback
    {
        [OperationContract]
        void OnData(byte[] data);
    }
}
